﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BLL
{
    public class ShippingAddressBase
    {
        #region 信息添加
        /// <summary>
        /// 信息添加
        /// </summary>
        /// <param name="_productObj"></param>
        /// <returns></returns>
        public static string CreateShippingAddress(Model.ShippingAddressBase _addressObj)
        {
            return (new SQLServerDAL.ShippingAddressBase()).CreateShippingAddress(_addressObj);
        }
        #endregion

        #region 信息修改
        /// <summary>
        /// 信息修改
        /// </summary>
        /// <param name="_productObj"></param>
        /// <returns></returns>
        public static string ModifyShippingAddress(Model.ShippingAddressBase _addressObj)
        {
            return (new SQLServerDAL.ShippingAddressBase()).ModifyShippingAddress(_addressObj);
        }
        #endregion

        #region 获取信息实体
        /// <summary>
        /// 获取信息实体
        /// </summary>
        /// <param name="shippingAddressId"></param>
        /// <returns></returns>
        public static Model.ShippingAddressBase GetObjectById(string shippingAddressId)
        {
            return (new SQLServerDAL.ShippingAddressBase()).GetObjectById(shippingAddressId);
        }
        #endregion

        #region 删除信息
        /// <summary>
        /// 匹配 ID 删除
        /// isLogical = True 逻辑删除, isLogical = false 物理删除
        /// </summary>
        public static void Delete(string shippingAddressId)
        {
            (new SQLServerDAL.ShippingAddressBase()).Delete(shippingAddressId); 
        }
        #endregion
    }
}
